package designpattern.builder.chain;

public class StuBuilder {
    private Student student = new Student();
    public StuBuilder setNo(String no){
        student.setNo(no);
        return this;
    }
    public StuBuilder setName(String name){
        student.setName(name);
        return this;
    }
    public StuBuilder setSex(Integer sex){
        student.setSex(sex);
        return this;
    }

    public StuBuilder setScore(Float score){
        student.setScore(score);
        return this;
    }

    public Student build(){
        return student;
    }
}
